package com.springbootnetty.handler;

import com.springbootnetty.dto.InBody;
import com.springbootnetty.entity.TbHeart;
import com.springbootnetty.jt808.BaseHead;
import org.springframework.stereotype.Component;

/**
 *00 02心跳
 *2
 * */

@Component
@BenType(0x0002)
public class HeartHandler extends BaseHandler{
    @Override
    public byte[] handle(InBody inBody, BaseHead baseHead) {
        System.out.println("心跳。。。。。。。。。。。。。。。。。");
        byte[] resp = new TbHeart().resp(inBody.getNewByte());
        return resp;
    }
}
